package cn.wolfcode.wms.query;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class QueryObject {

	private Integer currentPage=1;
	private Integer pageSize=5;
	
	public Integer getStartIndex(){
		if (currentPage > 1) {
			return (currentPage - 1) * pageSize;
		}
		return 0;
	}
}
